﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HeartStone.BaseDomain;

namespace HeartStone.Units.Hero
{
	public class HeroMinister : BaseDomain.BaseHero
	{
		/// <summary>
		/// 构造函数
		/// </summary>
		public HeroMinister()
			: base()
		{
			Name = "牧师";
			//初始化自己的技能
			HeroSkill = new MinisterSkill(this);
		}
	}

	public class MinisterSkill : BaseHeroSkill
	{

		public MinisterSkill(BaseHero pHero)
			: base(pHero)
		{
			TargetObject = TargetedObject.AllUnit;
		}

		/// <summary>
		/// 牧师的技能
		/// </summary>
		public override void Skill(BaseUnit taregted)
		{
			Console.WriteLine("{0}使用了技能，目标{1}", thisHero.Name, taregted.Name);
			this.thisHero.Treat(taregted, thisHero, 2);

		}
	}
}
